﻿#include "FITKAbaLoadGravity.h"


Interface::FITKAbaAbstractLoad::FITKAbaLoadType Interface::FITKAbaLoadGravity::getLoadType() const
{
    return Interface::FITKAbaAbstractLoad::FITKAbaLoadType::Gravity;
}

bool Interface::FITKAbaLoadGravity::copy(Core::FITKAbstractDataObject* obj)
{
    bool ok = FITKAbaLoadBodyForce::copy(obj);
    if (!ok)
        return false;
    FITKAbaLoadGravity* g = dynamic_cast<FITKAbaLoadGravity*>(obj);
    if (g == nullptr)
        return false;
    m_isWholeModel = g->m_isWholeModel;
    return true;
}

bool Interface::FITKAbaLoadGravity::isWholeModel() const
{
    return m_isWholeModel;
}

void Interface::FITKAbaLoadGravity::setWholeModel(bool state)
{
    m_isWholeModel = state;
}
